import router from '@system.router';

export default {
    data: {
        btnstate: 'null',       //按钮状态
        eventstate: false,      //事件状态
    },
    jumpto() {
        router.replace({
            uri: "pages/second/second"
        })
    },
    btnClicked(e) {
        this.btnstate = e.detail.btnstate;
    },
    eventState(e) {
        this.eventstate = e.detail.eventstate;
        if(this.eventstate == true) {
            router.replace({
                uri: "pages/second/second"
            })
        }
    }
}